package com.yiren.dbaa.module.project_edit.contract;

import com.yiren.backstage.currency.entity.GradeStandardEntity;
import com.yiren.backstage.currency.entity.SingleLightEntity;
import com.yiren.backstage.currency.entity.SiteEntity;

import java.util.HashMap;
import java.util.List;

/**
 * @author lwb
 * @date : 2022/8/24 17:33
 * @description: 单项灯光编辑契约
 */
public interface SingleLightEditContract {

    interface Presenter {
        /**
         * 获取所有单项灯光
         * @return
         */
        List<SingleLightEntity>  getAllSingleLightList();

        /**
         * 获取所有的评判模板数据
         */
        List<GradeStandardEntity>  getGradeStandardTemplate();

        /**
         * 加载评对话框
         */
        void loadGradeStandardDialog(View view,int type,String title);

        /**
         * 保存单项灯光
         */
        void saveSingleLight(SiteEntity site, String time, String lightContent, GradeStandardEntity gradeStandard, String gradeStandardContent, int points, HashMap<String, String> lightValue,SingleLightEntity singleLight);
    }

    interface Model {
        /**
         *获取评判模板
         * @return
         */
        List<GradeStandardEntity>  getGradeStandardTemplate();
    }

    interface View {
        /**
         * 显示扣分内容
         */
        void showPointsContent(String selectString,GradeStandardEntity gradeStandard,boolean isCustom);

        /**
         * 显示分数
         */
        void showPoints(int points);
    }


}
